<#-- @ftlvariable name="entity" type="com.xci.edu.core.entity.EduQuestion" -->
<#include "/sys/_layout.ftl">
<!doctype html>
<html>
<head>
    <@pageHeader/>
</head>
<body>
<@pageLoading/>
<div class="jxpanel winpanel" data-fit="true">
    <form id="editform" class="jxform" method="post"
          action="${saveUrl("/background/eduQuestion/","createSave","updateSave")}">
        <input name="id" value="${entity.id}" type="hidden">
        <table class="table jxtable-form">
            <input class="hidden" name="status" checked type="checkbox" value="1" data-unchecked-value="0"/>
            <tr>
                <th class="w-100px">试题题干</th>
                <td colspan="3">
                    <input class="form-control" id="title" name="title" value="${entity.title}" maxlength="2000" data-validate="required: [true,'请输入试题题干']" autocomplete="off"/>
                </td>
            </tr>
            <tr>
                <th>试题类型</th>
                <td>
                    <select class="form-control jxselect" id="questionCategory" name="questionCategory" data-validate="required: [true,'请选择试题类型']" autocomplete="off">
                        <@questionCategoryOptions selectedValue=entity.questionCategory/>
                    </select>
                </td>
                <th>科目名称</th>
                <td>
                    <select class="form-control jxselect" name="eduCategoryId" data-text-field="eduCategoryName" data-validate="required: [true,'请选择科目']"
                            data-allow-clear="true">
                        <option></option>
                        <@eduCategorySelectOption selectedValue=entity.eduCategoryId></@eduCategorySelectOption>
                    </select>
                </td>
            </tr>
            <tr>

            </tr>
            <tr>
                <th>选项A</th>
                <td>
                    <input class="form-control" id="optionA" name="optionA" value="${entity.optionA}" maxlength="2000" data-validate="required: [true,'请输入选项A']" autocomplete="off"/>
                </td>
                <th>选项B</th>
                <td>
                    <input class="form-control" id="optionB" name="optionB" value="${entity.optionB}" maxlength="2000"  autocomplete="off"/>
                </td>
            </tr>
            <tr>
                <th>选项C</th>
                <td>
                    <input class="form-control" id="optionC" name="optionC" value="${entity.optionC}" maxlength="2000"  autocomplete="off"/>
                </td>
                <th>选项D</th>
                <td>
                    <input class="form-control" id="optionD" name="optionD" value="${entity.optionD}" maxlength="2000"  autocomplete="off"/>
                </td>
            </tr>
            <tr>
                <th>选项E</th>
                <td>
                    <input class="form-control" id="optionE" name="optionE" value="${entity.optionE}" maxlength="2000"  autocomplete="off"/>
                </td>
                <th>选项F</th>
                <td>
                    <input class="form-control" id="optionF" name="optionF" value="${entity.optionF}" maxlength="2000"  autocomplete="off"/>
                </td>
            </tr>
            <tr>
                <th>答案</th>
                <td>
                    <input class="form-control" id="answer" name="answer" value="${entity.answer}" maxlength="50" data-validate="required: [true,'请输入答案']" autocomplete="off"/>
                </td>
                <th>分值</th>
                <td>
                    <input class="form-control jxnumber" id="score" name="score" type="number" maxlength="3"
                           data-validate="required: [true,'请输入分值']"
                           max="999" data-max="999" data-min="0"
                           data-decimals="0" data-step="1" value="${entity.score}" autocomplete="off"/>
                </td>
            </tr>
            <tr>
                <th>答案解析</th>
                <td colspan="3">
                    <input class="form-control" id="answerResolve" name="answerResolve" value="${entity.answerResolve}" maxlength="2000" data-validate="required: [true,'请输入答案解析']" autocomplete="off"/>
                </td>
            </tr>
            <tr>
                <th>备注</th>
                <td colspan="3">
                    <textarea class="form-control" name="remark" maxlength="500" rows="5" style="resize: none">${entity.remark}</textarea>
                </td>
            </tr>
        </table>
    </form>
    <div class="panel-footer text-right">
        <@editFormDialogCommand/>
    </div>
</div>
<@editFormPageFooter/>
</body>
</html>
